package cn.hyq.basic.util;

import lombok.Data;

@Data
public class AjaxResult {
    private boolean success = true;
    private String message = "一切顺利";


    public static AjaxResult me(){
        return new AjaxResult();
    }

    public AjaxResult setSuccess(boolean success) {
        this.success = success;
        return this;
    }

    public AjaxResult setMessage(String message) {
        this.message = message;
        return this;
    }
}
